import service from '@/utils/request'

// @Tags BcRecharge
// @Summary 创建bcRecharge表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcRecharge true "创建bcRecharge表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /bcRecharge/createBcRecharge [post]
export const createBcRecharge = (data) => {
  return service({
    url: '/bcRecharge/createBcRecharge',
    method: 'post',
    data
  })
}

// @Tags BcRecharge
// @Summary 删除bcRecharge表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcRecharge true "删除bcRecharge表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /bcRecharge/deleteBcRecharge [delete]
export const deleteBcRecharge = (data) => {
  return service({
    url: '/bcRecharge/deleteBcRecharge',
    method: 'delete',
    data
  })
}

// @Tags BcRecharge
// @Summary 批量删除bcRecharge表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除bcRecharge表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /bcRecharge/deleteBcRecharge [delete]
export const deleteBcRechargeByIds = (data) => {
  return service({
    url: '/bcRecharge/deleteBcRechargeByIds',
    method: 'delete',
    data
  })
}

// @Tags BcRecharge
// @Summary 更新bcRecharge表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BcRecharge true "更新bcRecharge表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /bcRecharge/updateBcRecharge [put]
export const updateBcRecharge = (data) => {
  return service({
    url: '/bcRecharge/updateBcRecharge',
    method: 'put',
    data
  })
}

// @Tags BcRecharge
// @Summary 用id查询bcRecharge表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.BcRecharge true "用id查询bcRecharge表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /bcRecharge/findBcRecharge [get]
export const findBcRecharge = (params) => {
  return service({
    url: '/bcRecharge/findBcRecharge',
    method: 'get',
    params
  })
}

// @Tags BcRecharge
// @Summary 分页获取bcRecharge表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取bcRecharge表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /bcRecharge/getBcRechargeList [get]
export const getBcRechargeList = (params) => {
  return service({
    url: '/bcRecharge/getBcRechargeList',
    method: 'get',
    params
  })
}
